home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / DHTML - Window and Frames / animated-window.izs next >
Text File  |  2005-09-02  |  2KB  |  122 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Animated Window Opener Script
  4. <!/TITLE>
  5.  
  6. <!BROWSER>FF1+ IE5+<!/BROWSER>
  7.  
  8. <!DESCRIPTION>Opens a secondary window that expands to cover the entire screen before loading the specified document into it. Browsers other than IE 4+ and NS 6 will simply load the document inside a regular secondary window.
  9. <!/DESCRIPTION> 
  10.  
  11. <!CATEGORY>window and frames<!/CATEGORY>
  12.  
  13. <!SCRIPT>
  14. <!-- START OF SCRIPT -->
  15. <script>
  16. <!--
  17.  
  18.  
  19. var winheight=100
  20. var winsize=100
  21. var x=5
  22.  
  23. /*
  24. Animated Window Opener Script (updated 00/04/24)- 
  25. ⌐ Dynamic Drive (www.dynamicdrive.com)
  26. For full source code, installation instructions, 100's more DHTML scripts, and Terms Of
  27. Use, visit dynamicdrive.com
  28. */
  29.  
  30.  
  31.  
  32. function openwindow(thelocation){
  33. temploc=thelocation
  34. if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){
  35. window.open(thelocation)
  36. return
  37. }
  38. win2=window.open("","","scrollbars")
  39. win2.moveTo(0,0)
  40. win2.resizeTo(100,100)
  41. go2()
  42. }
  43. function go2(){
  44. if (winheight>=screen.availHeight-3)
  45. x=0
  46. win2.resizeBy(5,x)
  47. winheight+=5
  48. winsize+=5
  49. if (winsize>=screen.width-5){
  50. win2.location=temploc
  51. winheight=100
  52. winsize=100
  53. x=5
  54. return
  55. }
  56. setTimeout("go2()",50)
  57. }
  58. //-->
  59. </script>
  60.  
  61. <p><a href="javascript:openwindow('http://wsabstract.com')">Open window</a>
  62.  
  63. <p><a href="javascript:openwindow('http://cnn.com')">Open window</a>
  64. <!-- END OF SCRIPT -->
  65. <!/SCRIPT>
  66.  
  67. <!PREVIEW>
  68. <!-- START OF SCRIPT -->
  69.  
  70. <script>
  71. <!--
  72.  
  73.  
  74. var winheight=100
  75. var winsize=100
  76. var x=5
  77.  
  78. /*
  79. Animated Window Opener Script (updated 00/04/24)- 
  80. ⌐ Dynamic Drive (www.dynamicdrive.com)
  81. For full source code, installation instructions, 100's more DHTML scripts, and Terms Of
  82. Use, visit dynamicdrive.com
  83. */
  84.  
  85.  
  86.  
  87. function openwindow(thelocation){
  88. temploc=thelocation
  89. if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){
  90. window.open(thelocation)
  91. return
  92. }
  93. win2=window.open("","","scrollbars")
  94. win2.moveTo(0,0)
  95. win2.resizeTo(100,100)
  96. go2()
  97. }
  98. function go2(){
  99. if (winheight>=screen.availHeight-3)
  100. x=0
  101. win2.resizeBy(5,x)
  102. winheight+=5
  103. winsize+=5
  104. if (winsize>=screen.width-5){
  105. win2.location=temploc
  106. winheight=100
  107. winsize=100
  108. x=5
  109. return
  110. }
  111. setTimeout("go2()",50)
  112. }
  113. //-->
  114. </script>
  115.  
  116. <p><a href="javascript:openwindow('http://wsabstract.com')">Open window</a>
  117.  
  118. <p><a href="javascript:openwindow('http://cnn.com')">Open window</a>
  119. <!-- END OF SCRIPT -->
  120. <!/PREVIEW>
  121.  
  122. <!RELATED>NONE<!/RELATED>